<template lang="html">
  <div class="container">
      <div class="m-artical-action">
          <div class="artical-action-mid" id="action_mid"></div>
      </div>
      <!-- <div id="top_nav" class="top-nav" style="display: none;">
          <div class="top-nav-warp" @click="rt()">
          	<div class="icon-back"></div>
         		<div class="nav-title" >返回</div>
          </div>
      </div> -->
      <!-- <div class="read-join-shelf read-opt" v-if="!isAdded" @click="addShelf()"><span>加入书架</span></div>
      <div class="read-join-shelf read-opt" v-if="isAdded"><span>已在书架</span></div> -->
      <!-- <div id="fition_chapter_title" style="margin:10px 0 0 10px;font-size:18px;font-weight:800;">{{data.chapter.title}}</div>
      <div id="fiction_container" class="m-read-content">&nbsp&nbsp&nbsp&nbsp{{data.chapter.cpContent}}</div> -->
      <!-- <div id="" class="m-button-bar">
          <ul class="u-tab">
              <li id="prev_button" @click="prev()">上一章</li>
              <li id="next_button" @click="next()">下一章</li>
          </ul>
      </div> -->
      <!-- <div class="nav-pannel-bk font-container" style="display: none;"></div>
      <div class="nav-pannel font-container" id="font-container" style="display: none;">
          <div class="child-mod">
              <span>字号</span>
              <button id="large-font" class="font-size-button">大</button>
              <button id="small-font" class="font-size-button">小</button>
          </div>
          <div class="child-mod">
              <span>背景</span>
              <div id="first_day" class="bk-container bk-container-white" data-background="#f7eee5">
                  <div class="bk-container-current" style="display: none;"></div>
              </div>
              <div class="bk-container bk-container-paple" data-background="#e9dfc7">
                  <div class="bk-container-current" style="display: none;"></div>
              </div>
              <div class="bk-container bk-container-grey" data-background="#a4a4a4">
                  <div class="bk-container-current" style="display: none;"></div>
              </div>
              <div class="bk-container bk-container-green" data-background="#cdefce">
                  <div class="bk-container-current" style="display: none;"></div>
              </div>
              <div id="last_night" class="bk-container bk-container-blue" data-background="#283548">
                  <div class="bk-container-current" style="display: none;"></div>
              </div>
          </div>
      </div> -->

      <!-- <div class="bottom-nav-bk bottom_nav" style="display: none;"></div>
      <div class="bottom-nav bottom_nav" style="display: none;">
          <div class="item" id="menu_button">
              <div class="item-warp" @click="menu()">
                  <div class="icon icon-menu"></div>
                  <div class="icon-text" >
                      目录
                  </div>
              </div>
          </div>
          <div class="item" id="font-button">
              <div class="item-warp">
                  <div class="icon icon-ft"></div>
                  <div class="icon-text">
                      字体
                  </div>
              </div>
          </div>
          <div class="item" id="night-day-button">
              <div class="item-warp" style="display:none" id="day_icon">
                  <div class="icon icon-day"></div>
                  <div class="icon-text">
                      白天
                  </div>
              </div>
              <div class="item-warp" style="display:none" id="night_icon">
                  <div class="icon icon-night"></div>
                  <div class="icon-text">
                      夜间
                  </div>
              </div>
          </div>
      </div> -->
  </div>
</template>

<script>
export default {
  data(){
    return{

    }
  },
  mounted(){
    let id = this.$route.params.id;
    this.axios('http://127.0.0.1:4000/data/chapter_data/id/'+id).then((res) => {
      console.log(res);
    })
  }
}
</script>

<style lang="css" scoped>
html {
    width: 100%;
    height:auto;
    overflow-x: hidden;
}

body {
    text-align: left;
    width: 100%;
    /* overflow: hidden; */
    background: #f7eee5;
}

.m-read-content {
    font-size: 14px;
    color: #555555;
    line-height: 31px;
    padding: 15px;
}

.m-read-content h4 {
    font-size: 20px;
    color: #736357;
    border-bottom: solid 1px #736357;
    letter-spacing: 2px;
    margin: 0 0 1em 0;
}

.m-read-content p {
    text-indent: 2em;
    margin: 0.5em 0;
    letter-spacing: 0px;
    line-height: 24px;
}

.m-button-bar {
    width: 70%;
    max-width: 800px;
    padding: 5px;
    margin: 0 auto;
}

.u-tab {
    height: 34px;
    margin: 10px auto;
    line-height: 34px;
    border-radius: 8px;
    border: 1px solid #858382;
    font-size: 12px;
    background: #000;
    opacity: 0.9;
}

.u-tab li {
    display: inline-block;
    width: 49%;
    border-right: 1px solid #858382;
    text-align: center;
    color: #fff;
}

.u-tab li:nth-child(2) {
    border: none;
}

.top-nav {
    position: fixed;
    top: 0px;
    height: 50px;
    width: 100%;
    z-index: 999;
    background: #000;
}
.top-nav-warp {
position: relative;
max-width: 900px;
margin: 0 auto;
}

.icon-back {
    position: absolute;
    top: 14px;
    left: 10px;
    width: 23px;
    height: 23px;
    background: url();
    background-size: contain;
}

.nav-title {
    position: absolute;
    top: 16px;
    left: 42px;
    color: #d5d5d6;
}

.bottom-nav-bk {
    position: fixed;
    bottom: 0px;
    height: 70px;
    background: #000;
    width: 100%;
    opacity: 0.9;
    z-index: 998;
}

.bottom-nav {
    position: fixed;
    bottom: 0px;
    height: 70px;
    width: 100%;
    background: none;
    z-index: 999;
    margin: 0 auto;
    text-align: center;
}

.item {
    display: inline-block;
    width: 32%;
    color: #fff;
    text-align: center;
    margin: 0 auto;
}

.item-warp {
    width: 26px;
    margin: 0 auto;
    position: relative;
}

.icon {
    position: absolute;
    top: 3px;
    left: 2px;
    width: 18px;
    height: 13px;
    background-size: contain;
}

.icon-menu {
    background: url();
    background-size: contain;
}

.icon-ft {
    width: 20px;
    height: 13px;
    background: url();
    background-size: contain;
}

.current .icon-ft {
    top: 2px;
    left: 0px;
    width: 22px;
    height: 15px;
    background: url();
    background-size: contain;
}

.icon-night {
    left: 4px;
    width: 16px;
    height: 16px;
    background: url();
    background-size: contain;
}

.icon-day {
    width: 19px;
    height: 18px;
    background: url();
    background-size: contain;
}

.icon-text {
    position: absolute;
    top: 25px;
    font-size: 10px;
}

.nav-pannel-bk {
    position: fixed;
    bottom: 70px;
    height: 135px;
    width: 100%;
    opacity: 0.9;
    background: #000;
    z-index: 998;
}

.nav-pannel {
    position: fixed;
    bottom: 70px;
    height: 135px;
    width: 100%;
    background: none;
    z-index: 999;
    color: #fff;
}

.child-mod {
    padding: 5px 10px;
    margin: 15px;
}

.child-mod span {
    display: inline-block;
    padding-right: 20px;
    padding-left: 10px;
}

.font-size-button {
    background: none;
    border: 1px solid #8c8c8c;
    color: #fff;
    border-radius: 16px;
    padding: 5px 40px;
}

.font-size-button:focus {
    background: none;
    border: 1px solid #8c8c8c;
    color: #fff;
    border-radius: 16px;
    padding: 5px 40px;
}

.child-mod button:nth-child(2) {
    margin-right: 10px;
}

.bk-container {
    position: relative;
    vertical-align: -14px;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    background: #fff;
    display: inline-block;
    margin-left: 7px;
}

.bk-container-white {
    background: #f7eee5;
}

.bk-container-paple {
    background: #e9dfc7;
}

.bk-container-grey {
    background: #a4a4a4;
}

.bk-container-green {
    background: #cdefce;
}

.bk-container-blue {
    background: #283548;
}

.bk-container-current {
    position: absolute;
    top: -2px;
    left: -2px;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    border: 1px solid #ff7800;
    display: inline-block;
}

.artical-action-mid {
    position: fixed;
    z-index: 997;
    width: 100%;
    height: 40%;
    top: 30%;
}

.read-opt {
    -webkit-transform: translate(0%, 0%);
    transform: translate(0%, 0%);
    opacity: 1;
    display: block;
}

.read-join-shelf {
    position: fixed;
    top: 60px;
    right: 70px;
    height: 30px;
    width: 70px;
    line-height: 30px;
    text-align: center;
    border-radius: 15px 0 0 15px;
    overflow: hidden;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    transition: -webkit-transform .15s;
    transition: transform .15s;
    transition: transform .15s, -webkit-transform .15s;
    z-index: 99;
}

</style>
